package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BOtherCostDao;
import com.hongxun.modules.api.entity.BOtherCostEntity;
import com.hongxun.modules.api.service.BOtherCostService;



@Service("bOtherCostService")
public class BOtherCostServiceImpl implements BOtherCostService {
	@Autowired
	private BOtherCostDao bOtherCostDao;
	
	@Override
	public BOtherCostEntity queryObject(String guid){
		return bOtherCostDao.queryObject(guid);
	}
	
	@Override
	public List<BOtherCostEntity> queryList(Map<String, Object> map){
		return bOtherCostDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bOtherCostDao.queryTotal(map);
	}
	
	@Override
	public void save(BOtherCostEntity bOtherCost){
		bOtherCost.setGuid(UUID.randomUUID().toString());
		bOtherCostDao.save(bOtherCost);
	}
	
	@Override
	public void update(BOtherCostEntity bOtherCost){
		bOtherCostDao.update(bOtherCost);
	}
	
	@Override
	public void delete(String guid){
		bOtherCostDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bOtherCostDao.deleteBatch(guids);
	}
	@Override
	public void deleteByAGuid(String[] guids){
		bOtherCostDao.deleteByAGuid(guids);
	}


	
}
